home *** CD-ROM | disk | FTP | other *** search
/ Doujin CG Kokoro Library - Health Center / KOKORO LIBRARY.ISO / html / cf.swf / scripts / DefineSprite_13 / frame_1 / DoAction.as
Encoding:
Text File  |  2002-12-04  |  546 b   |  21 lines

  1. function progress()
  2. {
  3.    moku_b = _parent.getBytesTotal() * mantan / 100;
  4.    progre = _parent.getBytesLoaded() / moku_b;
  5.    now = getTimer();
  6.    keika = now - start;
  7.    sokudo = _parent.getBytesLoaded() / keika;
  8.    sokudo2 = Math.ceil(sokudo * 10) / 10;
  9.    yosou = moku_b / sokudo;
  10.    nokori = (moku_b - _parent.getBytesLoaded()) / sokudo;
  11.    nokori2 = Math.ceil(nokori / 1000);
  12.    if(progre >= 1)
  13.    {
  14.       _parent.gotoAndPlay("start");
  15.    }
  16. }
  17. _parent.stop();
  18. _soundbuftime = 0;
  19. engine._visible = false;
  20. start = getTimer();
  21.